<template>
  <div class="card p-3 mb-3 bg-white border-bottom ">
    <div class="card-header d-flex ai-center pb-3 mb-3">
        <i class="iconfont mr-1" :class="`icon-${icon}`"></i>
        <h3 class="flex-1 fs-xl">{{title}}</h3>
        <i class="iconfont icon-menu"></i>
    </div>
    <div class="card-body">
      <slot/>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    },
    icon: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss">
@import '../../assets/scss/variables.scss';
.card-header{
  position: relative;
  &::after{
    content: '';
    position: absolute;
    left: 0;;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: $border-color;
  }
}
</style>
